package com.pap.rbac.roleresource.auto.entity;

import java.io.Serializable;

import com.pap.base.entity.PapBaseEntity;
import com.pap.base.mybatis.plugin.annotation.MyBatisColumnAnnotation;
import com.pap.base.mybatis.plugin.annotation.MyBatisTableAnnotation;

@MyBatisTableAnnotation(name = "t_rbac_role_resource_rel", namespace = "com.pap.rbac.roleresource.auto.mapper.RoleResourceRelMapper", remarks = " 修改点 ", aliasName = "t_rbac_role_resource_rel t_rbac_role_resource_rel" )
public class RoleResourceRel extends PapBaseEntity implements Serializable {
    /**
     *  角色编号,所属表字段为t_rbac_role_resource_rel.ROLE_ID
     */
    @MyBatisColumnAnnotation(name = "ROLE_ID", value = "t_rbac_role_resource_rel_ROLE_ID", chineseNote = "角色编号", tableAlias = "t_rbac_role_resource_rel")
    private String roleId;

    /**
     *  资源编号,所属表字段为t_rbac_role_resource_rel.RESOURCE_ID
     */
    @MyBatisColumnAnnotation(name = "RESOURCE_ID", value = "t_rbac_role_resource_rel_RESOURCE_ID", chineseNote = "资源编号", tableAlias = "t_rbac_role_resource_rel")
    private String resourceId;

    /**
     *  资源编号路径,所属表字段为t_rbac_role_resource_rel.RESOURCE_PATH_IDS
     */
    @MyBatisColumnAnnotation(name = "RESOURCE_PATH_IDS", value = "t_rbac_role_resource_rel_RESOURCE_PATH_IDS", chineseNote = "资源编号路径", tableAlias = "t_rbac_role_resource_rel")
    private String resourcePathIds;

    private static final long serialVersionUID = 1L;

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    public String getResourceId() {
        return resourceId;
    }

    public void setResourceId(String resourceId) {
        this.resourceId = resourceId;
    }

    public String getResourcePathIds() {
        return resourcePathIds;
    }

    public void setResourcePathIds(String resourcePathIds) {
        this.resourcePathIds = resourcePathIds;
    }
	
	@Override
	public String getDynamicTableName() {
		return "t_rbac_role_resource_rel";
	}

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", roleId=").append(roleId);
        sb.append(", resourceId=").append(resourceId);
        sb.append(", resourcePathIds=").append(resourcePathIds);
        sb.append("]");
        return sb.toString();
    }
}